import BTConditional from "../../Base/BTConditional";
import Blackboard from "../../Blackboard";
import { NodeStatus } from "../../Enum";

export default class ConditionalMp extends BTConditional
{

    onUpdate()
    {
        console.log("Blackboard.instance.mp is ", Blackboard.instance.mp, "res is", Blackboard.instance.mp >= 100);
		if (Blackboard.instance.mp >= 100)
        {
            return NodeStatus.Success;
		}
        return NodeStatus.Failure;
    }
}